package com.test;

public class HuiWen {
    public static void main(String[] args) {
        int a = 121;
        int temp = a;
        int b=0;
        while (a!=0) {
            b=b*10+a%10;
            a/=10;
        }
        System.out.println(b==temp);
    }
}
